package com.yhzc.vue_echartsserve.seller;


import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @version 1.0
 * @description: TODO
 * @date 2021/7/29 16:01
 */
@RestController
public class SellerData {

    @CrossOrigin
    @RequestMapping("/seller")
    public String sellerdataTest(){
        String jsonstr = "{\"data\":[{\"name\": \"商家1\",\"value\": 99},{\"name\": \"商家2\",\"value\": 102},{\"name\": \"商家3\",\"value\": 83},{\"name\": \"商家4\",\"value\": 49},{\"name\": \"商家5\",\"value\": 200},{\"name\": \"商家6\",\"value\": 152},{\"name\": \"商家7\",\"value\": 76},{\"name\": \"商家8\",\"value\": 23},{\"name\": \"商家9\",\"value\": 87},{\"name\": \"商家10\",\"value\": 233},{\"name\": \"商家11\",\"value\": 145},{\"name\": \"商家12\",\"value\": 187},{\"name\": \"商家13\",\"value\": 127},{\"name\": \"商家14\",\"value\": 57},{\"name\": \"商家15\",\"value\": 99}]}";
        System.out.println(jsonstr);
//        String data_json = JSON.toJSONString(jsonstr);
//        System.out.println(data_json);
        return jsonstr;
    }
}
